package com.myapp.api.service;

import com.myapp.api.entity.Dept;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface DeptService {
    public List<Dept> getDepts();

    public Dept getDeptById(@Param("id") Integer id);

    public Dept getDeptByDid(@Param("did") String did);

    public Integer getDeptByOneDid(@Param("did") String did);

    public List<Dept> getDeptByDname(@Param("dname") String dname);

    public int addDept(@Param("record") Dept record);

    public int deleteDeptById(@Param("id") Integer id);

    public int putDept(@Param("record") Dept record);
}
